package com.csu.device.service;

import com.alibaba.fastjson.JSONObject;
import com.csu.device.entity.Behavior;
import com.csu.device.entity.Device;
import com.csu.device.entity.DeviceRela;

import java.util.List;
import java.util.Map;

public interface HardWareService {

    List<Map<String,Object>> findAll();

    /**
     * 初始化硬件设备信息
     * @param map
     */
    public void initDeviceData(Map<String,String> map);


    /**
     * 硬件数据处理
     * @param jsonParam
     */
    public void deviceProsson(JSONObject jsonParam) throws Exception;


    /**
     * 获取所有设备
     * @return
     */
    List<Map<String,Object>> findAllHardware();

    /**
     * 根据设备id 获取绑定关系
     */
    public Behavior getDevRelaToDo(List<DeviceRela> deviceRelas, String deviceSn);

    /**
     * 报警推送接口
     * @param level
     * @param remark
     */
    void callPolice(Integer level,String remark,Device device,Integer behaviorType );


    public List<Map<String,String>> gpsHis(Map<String,Object> map);


    public List<Map<String,Object>> bedmatHis(Map<String,Object> map);
}
